//
//  SouFunXFListController.m
//  SouFunXFAPP
//
//  Created by 许博 on 16/5/18.
//  Copyright © 2016年 许博. All rights reserved.
//

#import "SouFunXFListController.h"
#import "UIImageView+WebCache.h"

@interface SouFunXFListController () <UITableViewDelegate,UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UITableView *tableView;

@end

@implementation SouFunXFListController




- (void)viewDidLoad {
    [super viewDidLoad];
    self.tableView.delegate = self;
    self.tableView.dataSource =self;
    self.tableView.rowHeight = 80;
    

}



- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 5;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *ID = @"cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell==nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:ID];
    }
    cell.textLabel.text = @"新房列表";
    cell.imageView.image = [UIImage imageNamed:@"newhouse"];
    NSURL *url = [NSURL URLWithString:@"http://img.soufun.com/viewimage/house/2014_11/17/bj/1416190704832_000/160x120.jpg"];
    [cell.imageView sd_setImageWithURL:url];
    return cell;
}

- (instancetype)initWithControllerName:(NSString *)controllerName {
    if (self = [super init]) {
        _controllerName = controllerName;
    }
    return self;
}

@end
